package com.kaifamiao.mybatis.association.mapper;

import com.kaifamiao.mybatis.association.entity.Course;
import com.kaifamiao.mybatis.association.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    Student find( Integer id );

    List<Student> findAll();

    int persist( Student s );

    int update( Student s );

    int remove( Integer id );

    int persistChoice( @Param("stu") Student s );

}
